import _http from '@/utils/http'

export default {
    incomeRuleList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/product/commission/strategy/page',
            apiName: '佣金规则列表',
        }, params, loading, headers)
    },

    incomeRuleCreate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/product/commission/strategy/create',
            apiName: '佣金规则创建',
        }, params, loading, headers)
    },

    incomeRuleDetail(params, loading, headers) {
        return _http('post', {
            url: `/eas/manage/product/commission/strategy/detail`,
            apiName: '佣金规则详情',
        }, params, loading, headers)
    },

    incomeRuleDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/product/commission/strategy/delete',
            apiName: '佣金规则删除',
        }, params, loading, headers)
    },

    incomeRuleModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/product/commission/strategy/update',
            apiName: '佣金规则更新',
        }, params, loading, headers)
    },
}
